
<%@ page import="org.xilin.RoomSchedule" %>

<g:setProvider library="jquery"/>

<div>
    <g:if test="${flash.message}">
      <div class="message">${flash.message}</div>
    </g:if>

    <g:hasErrors bean="${roomScheduleInstance}">
      <div class="errors">
          <g:renderErrors bean="${roomScheduleInstance}" as="list" />
      </div>
    </g:hasErrors>
    <g:formRemote name="saveTeacher" url="${[action:'save']}" method="post" update="content" onSuccess="" after="closeCluetip()">
        <g:hiddenField name="id" value="${roomScheduleInstance?.id}" />
        <g:hiddenField name="version" value="${roomScheduleInstance?.version}" />
        <g:hiddenField name="view" value="edit" />
        <div>
            <table>
                <tbody>

                    <tr class="prop">
                        <td valign="top" class="name">
                          <label for="room"><g:message code="roomSchedule.room.label" default="Room" /></label>
                        </td>
                        <td valign="top" class="value ${hasErrors(bean: roomScheduleInstance, field: 'room', 'errors')}">
                            <g:textField name="room" value="${roomScheduleInstance?.room}" />
                        </td>
                    </tr>

                </tbody>
            </table>
        </div>
        <div class="buttons">
            <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
            <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
        </div>
    </g:formRemote>
</div>
